<?php

class vistaPeso extends VistaBase {

    function vistaPeso() {
        
    }

    function dibujar() {
        $token =  $this->crearToken();
        ?>

        <!DOCTYPE html>

        <html>
             <?php include 'head.php'; ?>
            <head>
                <title><?php echo $this->titulo?></title>
                <script type="text/javascript" src="script/jquery-1.8.min.js" ></script>

                <link type="text/css" rel="stylesheet" href="script/jquery-ui-1.10.3.custom/css/start/jquery-ui-1.10.3.custom.min.css" />
                <link class="include" rel="stylesheet" type="text/css" href="script/dist/jquery.jqplot.min.css" /> 
                 <link type="text/css" rel="stylesheet" href="css/css.css" />

                <script type="text/javascript" src="script/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.js" ></script>
                <script class="include" type="text/javascript" src="script/dist/jquery.jqplot.min.js"></script>
                <script class="include" type="text/javascript" src="script/dist/plugins/jqplot.pieRenderer.min.js"></script>
                
                <script type="text/javascript" src="script/javascript.js" ></script>
                
            </head>
            <body id="body">
                <form id="f12" action="." method="POST">
                <nav><img src="img/home.png" id="menu"/></nav>
                <input type="hidden" name="controlador" value="Admin" />
                </form> 
                <div id="cuerpo">
                    <div class="post">
                <script>
                    $(document).ready(function() {
                        $("#guardarPregunta").button();
                        $('input[id^="spinner"]').spinner();
                    });
                </script>
                <h1 class="title">Modificar Peso</h1>
                <table><tr><td>
                <form id="f2" action="." method="POST">
                <p>
                    <label for="spinnerEfecti" class="title2">Efectividad :</label>
                    <input id="spinnerEfecti" name="spinnerEfecti" value="<?php echo $this->efectividad?>" onkeypress="return false;" />
                </p>
                <p>
                    <label for="spinnerProduc" class="title2">Productividad :</label>
                    <input id="spinnerProduc" name="spinnerProduc" value="<?php echo $this->productividad?>" onkeypress="return false;"/>
                </p>
                <p>
                    <label for="spinnerSegur" class="title2">Seguridad :</label>
                    <input id="spinnerSegur" name="spinnerSegur" value="<?php echo $this->seguridad?>" onkeypress="return false;"/>
                </p>
                <p>
                    <label for="spinnerSatis" class="title2">Satisfacci&oacute;n:</label>
                    <input id="spinnerSatis" name="spinnerSatis" value="<?php echo $this->satisfaccion?>" onkeypress="return false;"/>
                </p>
                <input type="button" value="Aplicar" id="botonAplicar" onclick="mensaje('peso')"/>
                <input type="hidden" name="controlador" value="Peso" />
                <input type="hidden" name="token"  value="<?php echo $token?>" />
                </form>
                        </td><td>
                <div class="col1" id="content">
                    
                    <div id="mensaje" title="Mensaje" style="display: none;">
                        se va a modificar el peso de la encuesta ¿Desea continuear?
                    </div>
                    
                    <div id="pie1"></div>

                    <script class="code" type="text/javascript">
                        pintar();
                        $("#pie1").draggable();
                    </script>
                </div>
                        </td></tr></table>
                </div>
                </div>
            </body>


        </html>

        <?php
    }

}
?>
